//package main_text;
//
//import java.io.DataOutputStream;
//import java.io.File;
//import java.io.FileNotFoundException;
//import java.io.FileOutputStream;
//import java.io.IOException;
//import java.io.OutputStream;
//import java.util.ArrayList;
//import java.util.HashMap;
//
//import org.apache.hadoop.conf.Configuration;
//import org.apache.hadoop.fs.FSDataOutputStream;
//import org.apache.hadoop.fs.FileSystem;
//import org.apache.hadoop.fs.Path;
//import org.semanticweb.owlapi.apibinding.OWLManager;
//import org.semanticweb.owlapi.model.IRI;
//import org.semanticweb.owlapi.model.OWLClass;
//import org.semanticweb.owlapi.model.OWLOntology;
//import org.semanticweb.owlapi.model.OWLOntologyCreationException;
//import org.semanticweb.owlapi.model.OWLOntologyManager;
//
//import alignment_text.ReaderRDF;
//
//public class OntologyToText {
//	private static String name = "";
//
//	public static void main(String[] args) {
//		String path = String.valueOf(args[0]);
//		try {
//			OWLOntology source = readOWL(path);
//			name = source.toString();
//			
//			String labels = "";
//			for (OWLClass owlClass : source.getClassesInSignature()) {
//				labels += ReaderRDF.getLabel(owlClass, source, false);
//			}
//			
//			saveInFileBlocksToCompare(labels);
//		} catch (OWLOntologyCreationException e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		}
//
//	}
//	
//	private static void saveInFileBlocksToCompare(String text) {
//		try {
//			File f =  new File("Ontologies/Text" + name + ".txt");
//			OutputStream os = new FileOutputStream(f);
//			String line = text;
//			os.write(line.getBytes());
//		} catch (FileNotFoundException e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		} catch (IOException e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		}
//		
//	}
//	
//	
//	private static OWLOntology readOWL(String path) throws OWLOntologyCreationException {
//		String DOCUMENT_IRI = path;
//		File file = new File(DOCUMENT_IRI);
//		// Create our ontology manager in the usual way.
//		OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
//		// Load a copy of the people+pets ontology. We'll load the ontology from
//		// the web (it's acutally located in the TONES ontology repository).
//		IRI docIRI = IRI.create(file);
//		// We load the ontology from a document - our IRI points to it directly
//		OWLOntology ontology = manager.loadOntologyFromOntologyDocument(docIRI);
//		
//		return ontology;
//	}
//}
